package com.ruibang.glass.material.feign;

import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient("glass-purchase")
public interface PurchaseApi {
    @GetMapping("/api/glass/purchase/arrival/updateStatus/{number}")
    @ApiOperation(value = "修改入库状态为已入库", response = ResultBody.class)
    ResultBody<String> updateStatus(@PathVariable("number") String number);


    @PostMapping("/api/glass/purchase/returns/updateOrderQuality")
    @ApiOperation(value = "完成入库更新采购数量", response = ResultBody.class)
    ResultBody updateOrderQuality(@RequestBody List<String> returnIdList);

}
